package com.centit.airplaneinfo_db.po;


import com.centit.support.algorithm.UuidOpt;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "DB_HBXX")
public class DbHbxx implements java.io.Serializable{
    private static final long serialVersionUID =  1L;

    /**
     * REC_ID【主键】 REC_ID【主键】
     */
    @Id
    @Column(name = "REC_ID")
    private String recId;

    @Column(name = "RECORD_ID")
    private String  recordId;

    @Column(name = "DATA_STATE")
    private String  dataState;

    @Column(name = "CREATE_DATE")
    private Date createDate;

    @Column(name = "CREATE_USER")
    private String  createUser;

    @Column(name = "AIR_PLANE_TYPE")
    private String  airPlaneType;

    @Column(name = "AIR_PLANE_NUMBER")
    private String  airPlaneNumber;

    @Column(name = "FLIGHT_HOURS")
    private String  flightHours;


    public DbHbxx() {
    }

    public DbHbxx(String recordId, String createUser, String airPlaneType,
                  String airPlaneNumber,String flightHours) {
        this.recId = UuidOpt.getUuidAsString32();
        this.recordId = recordId;
        this.dataState = "1";
        this.createDate = new Date();
        this.createUser = createUser;
        this.airPlaneType = airPlaneType;
        this.airPlaneNumber = airPlaneNumber;
        this.flightHours = flightHours;
    }

    public String getRecId() {
        return recId;
    }

    public void setRecId(String recId) {
        this.recId = recId;
    }

    public String getRecordId() {
        return recordId;
    }

    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }

    public String getDataState() {
        return dataState;
    }

    public void setDataState(String dataState) {
        this.dataState = dataState;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getAirPlaneType() {
        return airPlaneType;
    }

    public void setAirPlaneType(String airPlaneType) {
        this.airPlaneType = airPlaneType;
    }

    public String getAirPlaneNumber() {
        return airPlaneNumber;
    }

    public void setAirPlaneNumber(String airPlaneNumber) {
        this.airPlaneNumber = airPlaneNumber;
    }

    public String getFlightHours() {
        return flightHours;
    }

    public void setFlightHours(String flightHours) {
        this.flightHours = flightHours;
    }
}
